package com.android.htdvideoview;

import android.content.Context;
import android.graphics.SurfaceTexture;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.Surface;
import android.view.TextureView;
import android.widget.FrameLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.sansecy.android.simplevideo.Player;
import com.sansecy.android.simplevideo.VideoTextureView;

/**
 * 项目名称：VideoTest
 * 类 名 称：ExoVideoView
 * 类 描 述：ExoVideoView
 * 创建时间：2019-11-15 21:18
 * 创 建 人：sansecy
 */
public class ExoVideoView extends FrameLayout implements Player, TextureView.SurfaceTextureListener{
    private VideoTextureView mTargetView;
    public ExoVideoView(@NonNull Context context) {
        this(context, null);
    }
    public ExoVideoView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        mTargetView = new VideoTextureView(getContext());
        mTargetView.setSurfaceTextureListener(this);
    }

    
    public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {

    }

    
    public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {

    }

    
    public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
        return false;
    }

    
    public void onSurfaceTextureUpdated(SurfaceTexture surface) {

    }

    
    public void start() {

    }

    
    public void pause() {

    }

    
    public int getDuration() {
        return 0;
    }

    
    public int getCurrentPosition() {
        return 0;
    }

    
    public void seekTo(int pos) {

    }

    
    public boolean isPlaying() {
        return false;
    }

    
    public int getBufferPercentage() {
        return 0;
    }

    
    public void setSurface(Surface surface) {

    }

    
    public void loadUrl(String url) {

    }

    
    public void loadUri(Uri uri) {

    }

    
    public void openVideo() {

    }

    
    public void stopPlayback() {

    }

    
    public void setOnSeekCompleteListener(OnSeekCompleteListener onSeekCompleteListener) {

    }

    
    public void setOnBufferingUpdateListener(OnBufferingUpdateListener onBufferingUpdateListener) {

    }

    
    public void setOnCompletionListener(OnCompletionListener onCompletionListener) {

    }

    
    public void setOnErrorListener(OnErrorListener onErrorListener) {

    }

    
    public void setOnInfoListener(OnInfoListener onInfoListener) {

    }

    
    public void setOnPreparedListener(OnPreparedListener onPreparedListener) {

    }

    
    public void setOnVideoSizeChangedListener(OnVideoSizeChangedListener onVideoSizeChangedListener) {

    }
}
